package com.yjps.common.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name="t_address")
public class Address extends BaseModel {
    //省
    @Column(name="province",length = 10,nullable = false)
    private String province;
    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    //城市
    @Column(name="city",length = 10,nullable = false)
    private String city;
    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    //县区
    @Column(name="county",length = 10,nullable = false)
    private String county;
    public String getCounty() {
        return county;
    }

    public void setCounty(String county) {
        this.county = county;
    }

    //乡镇
    @Column(name="town",length = 10,nullable = false)
    private String town;
    public String getTown() {
        return town;
    }

    public void setTown(String town) {
        this.town = town;
    }

    //详细地址
    @Column(name="detail",length = 50,nullable = false)
    private String detail;
    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    //状态
    @Column(name="state",length = 10,nullable = false)
    private String state;
    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

}
